package com.nuoniu.sibanyun.entity.finance;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 存货总账表
 * </p>
 *
 * @author 小啊刚
 * @since 2021-05-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("fag_summary")
@ApiModel(value="InSummary对象", description="存货总账表")
public class InSummary extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "账套id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "账套年份")
    @TableField("account_year")
    private Integer accountYear;

    @ApiModelProperty(value = "账套期间")
    @TableField("account_period")
    private Integer accountPeriod;

    @ApiModelProperty(value = "存货id")
    @TableField("inventory_id")
    private Integer inventoryId;

    @ApiModelProperty(value = "存货名称")
    @TableField("inventory_name")
    private String inventoryName;

    @ApiModelProperty(value = "存货编码")
    @TableField("inventory_code")
    private String inventoryCode;

    @ApiModelProperty(value = "单据日期")
    @TableField("voucher_date")
    private LocalDateTime voucherDate;

    @ApiModelProperty(value = "部门id")
    @TableField("office_id")
    private Integer officeId;

    @ApiModelProperty(value = "部门名称")
    @TableField("office_name")
    private String officeName;

    @ApiModelProperty(value = "仓库id")
    @TableField("warehouse_id")
    private Integer warehouseId;

    @ApiModelProperty(value = "仓库名称")
    @TableField("warehouse_name")
    private String warehouseName;

    @ApiModelProperty(value = "最大入库单价")
    @TableField("max_in_cost")
    private BigDecimal maxInCost;

    @ApiModelProperty(value = "最小入库单价")
    @TableField("min_in_cost")
    private BigDecimal minInCost;

    @ApiModelProperty(value = "结存差异")
    @TableField("balance_difference")
    private BigDecimal balanceDifference;

    @ApiModelProperty(value = "差异率")
    @TableField("difference_rate")
    private BigDecimal differenceRate;

    @ApiModelProperty(value = "是否直接业务")
    @TableField("is_direct_business")
    private Boolean isDirectBusiness;

    @ApiModelProperty(value = "收入差异")
    @TableField("in_difference")
    private BigDecimal inDifference;

    @ApiModelProperty(value = "入库金额")
    @TableField("in_amount")
    private BigDecimal inAmount;

    @ApiModelProperty(value = "入库数量")
    @TableField("in_quantity")
    private BigDecimal inQuantity;

    @ApiModelProperty(value = "结存金额")
    @TableField("balance_amount")
    private BigDecimal balanceAmount;

    @ApiModelProperty(value = "结存数量")
    @TableField("balance_quantity")
    private BigDecimal balanceQuantity;

    @ApiModelProperty(value = "发出差异")
    @TableField("out_difference")
    private BigDecimal outDifference;

    @ApiModelProperty(value = "出库金额")
    @TableField("out_amount")
    private BigDecimal outAmount;

    @ApiModelProperty(value = "出库数量")
    @TableField("out_quantity")
    private BigDecimal outQuantity;

    @ApiModelProperty(value = "单价")
    @TableField("unit_price")
    private BigDecimal unitPrice;


}
